<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
{{assign var="title" value='Mysql数据库编辑'}}
{{assign var="app" value='category'}}
{{assign var="act" value=''}}
<title>{{$title}} - {{'admin|admin_site_name'|C|default:'后台管理'}}</title>
{{include file="include/base.html"}}
</head>
<body>

	{{include file="include/sidebar.html"}}
	
	<div class="body_right">
	<div id="content">
	
	<div class="search">
	  <ul class="bread">
		<li>◆ {{$title}}管理 －> {{$title}}</li>
	  <ul>
	</div>

		<!--内容 S-->
		<form method="post" action="index.php?app=tool&act=mysql&go={{$smarty.get.go}}&table={{$smarty.get.table}}&url_param={{$url_param}}" class="ajaxSubmit">
		{{if $smarty.get.go eq "update"}}
		<input type="hidden" name="eg_base64_where" value="{{$smarty.get.eg_base64_where}}">
		{{/if}}
		<table class="table table-bordered">
		  <tbody>			
			{{section name=loop loop=$list}}
			<tr>
			  <td width="150" class="textar paddingr10">{{$list[loop].name}}：</td>
			  <td align="left">
				{{if $list[loop].auto neq null}}
				<font color="blue">{{$list[loop].value}}&nbsp;&nbsp;{{$list[loop].auto}}</font>
				{{elseif $list[loop].type eq "datetime"}}
				<input name="{{$list[loop].name}}" type="text" format="yyyy-MM-dd HH:mm:ss" class="date input-xlarge" size="30" value="{{$list[loop].value}}"/>
				{{elseif $list[loop].type eq "date"}}
				<input name="{{$list[loop].name}}" type="text" format="yyyy-MM-dd" class="input-xlarge date{{if $list[loop].null eq "no"}} required{{/if}}" size="30" value="{{$list[loop].value}}"/><a class="inputDateButton" href="javascript:;">选择</a>
				{{elseif $list[loop].length < 50 && $list[loop].type!="text"}}
				<input name="{{$list[loop].name}}" {{if $list[loop].null eq "no"}}class="input-xlarge required"{{/if}} type="text" size="60" value="{{$list[loop].value}}"/>
				{{else}}
				<textarea name="{{$list[loop].name}}" {{if $list[loop].null eq "no"}}class="required"{{/if}} rows="5" cols="57">{{$list[loop].value}}</textarea>
				{{/if}}
				&nbsp;&nbsp;{{$list[loop].comment}}【{{$list[loop].type}}{{if $list[loop].length neq null}},{{$list[loop].length}}{{/if}}】
			  </td>
			</tr>
			{{/section}}
		  </tbody>
		 </table>
		<div class="bottom_button">
			<button type="submit" class="btn btn-info"><i class="icon-ok icon-white"></i>{{if $smarty.get.go eq "add"}}添加{{else}}修改{{/if}}</button>
		</div>
		</form>
		<!--内容 E-->
</div>
</div>

</body>
</html>